const demo = require(process.argv[2])
console.log('running', demo)

/*
I napi_register_module_v1 +16 errinfo->error_message: 'Invalid argument'
I napi_register_module_v1 +17 errinfo->engine_reserved: '0'
I napi_register_module_v1 +18 errinfo->engine_error_code: '0'
I napi_register_module_v1 +19 errinfo->error_code: '1'
I napi_register_module_v1 +20 (errinfo->error_code == napi_invalid_arg): 'true'
node:internal/modules/cjs/loader:1189
  return process.dlopen(module, path.toNamespacedPath(filename));
                 ^

Error: Invalid argument [../../third_party_demo/napi/src/4.error.cpp:22]
    at Module._extensions..node (node:internal/modules/cjs/loader:1189:18)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Module._load (node:internal/modules/cjs/loader:827:12)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object.<anonymous> (/home/luwh/repo/demos/third_party_demo/napi/src/4.error.js:1:14)
    at Module._compile (node:internal/modules/cjs/loader:1105:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Module._load (node:internal/modules/cjs/loader:827:12)

Node.js v18.1.0
*/
